﻿using ArtMath.Attribute;
using ArtMath.Component.Polygon;
using ArtMath.Core.Data;
using ArtMath.Core.Helper;
using ArtMath.Resource;
using ArtMath.Setting;
using System;
using System.ComponentModel;
using System.Drawing;

namespace ArtMath.Component.Point
{
    /// <summary>
    /// 三角形垂心（适用于直角坐标系）
    /// </summary>
    [Serializable]
    public class ROrthoCenter : OrthoCenterBase
    {
        public ROrthoCenter(SketchPad pad, string name, PolygonBase triangle, bool addToList = true) : base(pad, name, triangle, addToList)
        {
            CoordinateDisplayer = new PropertyDisplayer(this, Resources.Translate("Coordinate"), "({0}, {1})", "X", "Y");
        }
    }
}
